# class Student(object):
#     def __init__(self, name, score):
#         self.name = name
#         self.score = score
#
#
#
# a = Student('lisi',123)
# print(a.name)

class Student(object):
    def __init__(self, name, gender):
        self.name = name
        self.__gender = gender

    def get_gender(self):
        return self.__gender

    def set_gender(self, gender):
        self.__gender = gender

a = Student("lisi", 12)
print(a.name)
print(a.get_gender())